package com.stu.pojo;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AccountFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Long id;
    @ExcelIgnore
    private Long accountId;
    @ExcelProperty("账户名")
    private String accountName;
    @ExcelIgnore
    private Long studentId;
    @ExcelProperty("学生名")
    private String studentName;

    /**
     * 支付方式：支付宝 微信等
     */
    @ExcelProperty("支付方式")
    private String payment;

    /**
     * 本单流水量，对price进行统计,与count对比结果相符就修改状态
     */
    @ExcelProperty("流水金额")
    private BigDecimal count;

    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private LocalDateTime updateTime;

    //创建人
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long createUser;

    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Long updateUser;

    private String desctext;
    /**
     * 逻辑删除 0:可用1:逻辑删除
     */
    @ExcelIgnore
    private Integer isDeleted;

    private BigDecimal yve;
}
